package com.example.simple.work.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class EmployeeMessage extends BaseEntity implements Serializable {
    private Integer id;
    private String employeeName;
    private String employeeSex;
    private String employeeId;
    private String phone;
    private String employeeDepartment;
    private String workAddress;
    private String birthday;
    private String more;
    private Integer isDelete;
    private Date workDay;
    private Date leaveDay;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeeSex() {
        return employeeSex;
    }

    public void setEmployeeSex(String employeeSex) {
        this.employeeSex = employeeSex;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmployeeDepartment() {
        return employeeDepartment;
    }

    public void setEmployeeDepartment(String employeeDepartment) {
        this.employeeDepartment = employeeDepartment;
    }

    public String getWorkAddress() {
        return workAddress;
    }

    public void setWorkAddress(String workAddress) {
        this.workAddress = workAddress;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getMore() {
        return more;
    }

    public void setMore(String more) {
        this.more = more;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Date getWorkDay() {
        return workDay;
    }

    public void setWorkDay(Date workDay) {
        this.workDay = workDay;
    }

    public Date getLeaveDay() {
        return leaveDay;
    }

    public void setLeaveDay(Date leaveDay) {
        this.leaveDay = leaveDay;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof EmployeeMessage)) return false;
        if (!super.equals(o)) return false;
        EmployeeMessage that = (EmployeeMessage) o;
        return Objects.equals(getId(), that.getId()) && Objects.equals(getEmployeeName(), that.getEmployeeName()) && Objects.equals(getEmployeeSex(), that.getEmployeeSex()) && Objects.equals(getEmployeeId(), that.getEmployeeId()) && Objects.equals(getPhone(), that.getPhone()) && Objects.equals(getEmployeeDepartment(), that.getEmployeeDepartment()) && Objects.equals(getWorkAddress(), that.getWorkAddress()) && Objects.equals(getBirthday(), that.getBirthday()) && Objects.equals(getMore(), that.getMore()) && Objects.equals(getIsDelete(), that.getIsDelete()) && Objects.equals(getWorkDay(), that.getWorkDay()) && Objects.equals(getLeaveDay(), that.getLeaveDay());
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), getId(), getEmployeeName(), getEmployeeSex(), getEmployeeId(), getPhone(), getEmployeeDepartment(), getWorkAddress(), getBirthday(), getMore(), getIsDelete(), getWorkDay(), getLeaveDay());
    }

    @Override
    public String toString() {
        return "EmployeeMessage{" +
                "id=" + id +
                ", employeeName='" + employeeName + '\'' +
                ", employeeSex='" + employeeSex + '\'' +
                ", employeeId='" + employeeId + '\'' +
                ", phone='" + phone + '\'' +
                ", employeeDepartment='" + employeeDepartment + '\'' +
                ", workAddress='" + workAddress + '\'' +
                ", birthday='" + birthday + '\'' +
                ", more='" + more + '\'' +
                ", isDelete=" + isDelete +
                ", workDay=" + workDay +
                ", leaveDay=" + leaveDay +
                '}';
    }
}
